<form id='ieqModelForm' class="form-inline" style="margin-bottom: 5px">
<label class="control-label" style="font-size: 11px">Choose IEQ Model: &nbsp;</label>
{{ ieq_model.management_form }}
{{ ieq_model.name }}
</form>
<form id='ieqSaveForm' class="form-inline" style="margin-bottom: 0px">
<label class="checkbox" style="font-size: 11px"><input type="checkbox" id="saveIeqModel">Save IEQ model results</label>
<!--{{ ieq_data.management_form }}
{{ ieq_data.name }}-->
</form>
<script>
    $('select#id_ieqModel_name').change(function() {
    	if (document.title.match('Lighting')){var category = 'Lighting'}
    	else if (document.title.match('Thermal Comfort')){var category = 'Thermal Comfort'}
    	else if (document.title.match('IAQ')){var category = 'IAQ'}
    	else {var category = 'Acoustics'}
		/*$.ajax({
			type: "POST",
			url: "/pmp/utils/",
			data: JSON.stringify({'projectId': sessvars.sessionObj['projectId'], 'ieq_model_form': $('form#ieqModelForm').serializeObject(), 'ieq_model': $(this).val(), 'ieq_category':category}),
			success: function(data){
				$('#analysisOptionsIEQ').html(data)
			},
			async: false
		});
		if ($('#ctRadioMap').is(':checked')){
	    	$('#ieqSaveForm').hide()
	    }*/
	})
	/*$('#id_ieqData_name').attr("disabled", true);
	$('#saveIeqModel').click(function(){
		if($('#saveIeqModel').is(':checked')){$('#id_ieqData_name').removeAttr("disabled");}
		else{$('#id_ieqData_name').attr("disabled", true);}
	})
	*/
</script>